
package net.atremmedia.gwt.actionjava.examples.bounds.samples.curve;

import net.atremmedia.gwt.actionjava.examples.frame.AJExampleOverview;
import actionjava.display.Graphics;
import actionjava.events.tick.TickEvent;

public abstract class DrawCurve extends DrawCurveBounds
{
	/*
	 * ---------------------------------------------------------------
	 *	Constructor
	 * ---------------------------------------------------------------
	 */

	public DrawCurve(String name, String description, String exampleSrc, AJExampleOverview base)
	{
		super(name, description, exampleSrc, base);
	}

	/*
	 * ---------------------------------------------------------------
	 *	Public methods
	 * ---------------------------------------------------------------
	 */

	public void run(boolean drawBounds)
	{
		super.run(drawBounds);
		drawCurve(getCurveGraphics());
	}

	@Override
	public void onRenderTick(TickEvent event)
	{
	}

	/*
	 * ---------------------------------------------------------------
	 *	Abstract methods
	 * ---------------------------------------------------------------
	 */

	public abstract void drawCurve(Graphics graph);
}
